<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./js/jquery.js"></script>
  <script src="./js/axios.js"></script>
</head>
<body>
  <button>发送请求</button>
  <script>
     
    $("button").click(function(){
      axios.post("http://127.0.0.1:3001/login",{uname:"zhangsan",pwd:"123456"}).then(res=>{console.log(res)
      return axios.get("http://127.0.0.1:3001/orderlist?uid=" +res.data.uid)}).then(res=>{
        console.log(res.data.list);
      }).catch(err=>console.log(err))
    }
     
    )
  </script>
</body>
</html>